import { createRouter, createWebHistory } from 'vue-router'
import loginView from '../views/login/index.vue'
import creadView from '../views/login/cread.vue'
import regstView from '../views/login/regst.vue'
import shopView from '../views/login/shop.vue'
import myView from '../views/login/my.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/login',
      component: loginView, children: [
        {
          path: 'cread',
          component: creadView,
        },
        {
          path: 'regst',
          component: regstView,
        },
        {
          path: 'shop',
          component: shopView,
        },
        {
          path: 'my',
          component: myView,
        },
      ]
    },
  ],
})

export default router
